﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq.Expressions;

namespace NMock2
{
	/// <summary>
	/// This class contains extension methods to support other classes.
	/// </summary>
	internal static class Extensions
	{
		/// <summary>
		/// Formats the word time to be plural or not
		/// </summary>
		/// <param name="count">The number of times called</param>
		/// <returns>The string 'time' or 'times'</returns>
		public static string Times(this int count)
		{
			return count + ((count == 1) ? " time" : " times");
		}
	}
}
